﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace SlamDunk.CMS.IDAL
{
    /// <summary>
    /// ScoreLine数据接口层接口（手写部分接口）
    /// </summary>
    public partial interface IScoreLineDal
    {
        #region 01.根据年份与省份条件获取记录条数
        /// <summary>
        /// 根据年份与省份条件获取记录条数
        /// </summary>
        /// <param name="year">年份</param>
        /// <param name="prov">省份</param>
        /// <returns>记录条数</returns>
        int GetCount(short year, string prov);
        #endregion

        #region 02.根据年份与省份条件获取获取实体对象集合
        /// <summary>
        /// 根据年份与省份条件获取获取实体对象集合
        /// </summary>
        /// <param name="start">起始行</param>
        /// <param name="end">终止行</param>
        /// <param name="year">年份</param>
        /// <param name="prov">省份</param>
        /// <returns>实体对象集合</returns>
        List<Model.ScoreLine> GetModelList(int start, int end, short year, string prov);
        #endregion

        #region 03.获取所有年份
        /// <summary>
        /// 获取所有年份
        /// </summary>
        /// <returns>年份集合</returns>
        List<short> GetAllYear();
        #endregion

        #region 04.获取所有省份
        /// <summary>
        /// 获取所有年份
        /// </summary>
        /// <returns>省份集合</returns>
        List<string> GetAllProv();
        #endregion
    }
}
